<?php
/**
 * Created by PhpStorm.
 * User: mojie126
 * Date: 2017/5/24 0024
 * Time: 上午 10:10
 */

namespace app\common;

use think\Queue;

class mailqueue
{
	static public function mailqueue($mailto, $subject, $msg)
	{
		$data['mailto'] = $mailto;
		$data['subject'] = $subject;
		$data['msg'] = $msg;
		$res = Queue::push('app\common\EmailQueueJobs', $data, "mail");
		if ($res !== FALSE) {
			return TRUE;
		} else {
			return FALSE;
		}
	}
}